var manageForum = {
	forums: $H(),
	
	/*------------------------------*/
	/* Constructor 					*/
	init: function()
	{
		Debug.write("Initializing manageForum.js");
	},
	register: function(forum_id)
	{
		Debug.write('ibMarket manage forum ' + forum_id);
		
		this.forums[forum_id] = $(forum_id+"-settings");
		this.forums[forum_id].hide();
		
		$(forum_id).observe('click', this.toggleSetting.bindAsEventListener( this ));
	},
	toggleSetting: function(event)
	{
		Debug.write('Toggle '+event.element().identify());
		if(this.forums[event.element().identify()].visible())
		{
			this.forums[event.element().identify()].hide();
		}
		else
		{
			this.forums[event.element().identify()].show();
		}
	}
}

manageForum.init();